#ifndef __LINUX_IRQ_FLAGS_H__
#define __LINUX_IRQ_FLAGS_H__

#include "asm/irqflags.h"

#define local_irq_disable() kernel_disable_irq()
#define local_irq_enable()  kernel_enable_irq()

#define raw_local_irq_save(flags)\
    do {\
        flags = arch_local_irq_save();\
    } while (0);

#define raw_local_irq_restore(flags)\
    do {\
        arch_local_irq_restore(flags);\
    } while (0);

#define local_irq_save(flags)\
    do {\
        raw_local_irq_save(flags);\
    } while (0);

#define local_irq_restore(flags) \
    do {\
        raw_local_irq_restore(flags);\
    } while (0);

#define raw_local_irq_disable()		arch_local_irq_disable()
#define raw_local_irq_enable()		arch_local_irq_enable()

#endif
